﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace TestWebService
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            string strRet = "";
            strRet += "<?xml version=\"1.0\" encoding=\"gb2312\"?>";
            strRet += "<depnames>";
            strRet += "<depname sn=\"12121212121212\">杭州市委机要局</depname>";
            strRet += "<depname sn=\"343443434343\">杭州市政府</depname>";
            strRet += "<depname sn=\"5656556565655\">杭州市委</depname>";
            strRet += "<depname sn=\"610b6ef000000000000b\">北京分公司</depname>";
            strRet += "<depname sn=\"610b6f4e00000000000c\">公章服务器管理部</depname>";
            strRet += "</depnames> ";

            return strRet;
        }
    }
}
